package org.openweathermap.service;

import vn.com.vtv.R;

/**
 * format: 
 * 	- param: method_key = "key";
 * 	- value: _key = "value";
 * */
public class Constant {
	
	public static final String HOST = "http://api.openweathermap.org/";
	public static final String GET_APPID = "APPID";
	public static final String _APPID = "4283bd34f42daa136e0d200cb21cfd7b";

	public static final String GET_UNIT = "units";
	public static final String _UNIT = "metric";
	
	public static final String HOST_IMG = "http://openweathermap.org/img/w/";
	
	public static final Object[][] WEATHER_DRAWABLE = 
		{
			{"01d",R.drawable.i01d},{"01n",R.drawable.i01n},
			{"02d",R.drawable.i02d},{"02n",R.drawable.i02n},
			{"03d",R.drawable.i03d},{"03n",R.drawable.i03n},
			{"04d",R.drawable.i04d},{"04n",R.drawable.i04n},
			{"09d",R.drawable.i09d},{"09n",R.drawable.i09n},
			{"10d",R.drawable.i10d},{"10n",R.drawable.i10n},
			{"11d",R.drawable.i11d},{"11n",R.drawable.i11n},
			{"13d",R.drawable.i13d},{"13n",R.drawable.i13n},
			{"50d",R.drawable.i50d},{"50n",R.drawable.i50n}
		};
	
	public static final String[/*name*/][/*day*/][/*night*/] WEATHER_ICON = 
		{
			{{"sky is clear"},		{"01d.png"},	{"01n.png"}},
			{{"few clouds"},		{"02d.png"},	{"02n.png"}},
			{{"scattered clouds"},	{"03d.png"},	{"03n.png"}},
			{{"broken clouds"},		{"04d.png"},	{"04n.png"}},
			{{"shower rain"},		{"09d.png"},	{"09n.png"}},
			{{"Rain"},				{"10d.png"},	{"10n.png"}},
			{{"Thunderstorm"},		{"11d.png"},	{"11n.png"}},
			{{"snow"},				{"13d.png"},	{"13n.png"}},
			{{"mist"},				{"50d.png"},	{"50n.png"}}
		};
	
	/**
	 * {@link:http://bugs.openweathermap.org/projects/api/wiki/Weather_Condition_Codes}
	 * */
	public String[/*id*/][/*meaning*/][/*icon*/] WEATHER_CODE = 
		{
			/*Thunderstorm*/
			{{"200"},	{"11d.png"},	{"thunderstorm with light rain"}},
			{{"201"},	{"11d.png"},	{"thunderstorm with rain"}},
			{{"202"},	{"11d.png"},	{"thunderstorm with heavy rain"}},
			{{"210"},	{"11d.png"},	{"light thunderstorm"}},
			{{"211"},	{"11d.png"},	{"thunderstorm"}},
			{{"212"},	{"11d.png"},	{"heavy thunderstorm"}},
			{{"221"},	{"11d.png"},	{"ragged thunderstorm"}},
			{{"230"},	{"11d.png"},	{"thunderstorm with light drizzle"}},
			{{"231"},	{"11d.png"},	{"thunderstorm with drizzle"}},
			{{"232"},	{"11d.png"},	{"thunderstorm with heavy drizzle"}},
			/*Drizzle*/
			{{"300"},	{"09d.png"},	{"light intensity drizzle"}},
			{{"301"},	{"09d.png"},	{"drizzle"}},
			{{"302"},	{"09d.png"},	{"heavy intensity drizzle"}},
			{{"310"},	{"09d.png"},	{"light intensity drizzle rain"}},
			{{"311"},	{"09d.png"},	{"drizzle rain"}},
			{{"312"},	{"09d.png"},	{"heavy intensity drizzle rain"}},
			{{"313"},	{"09d.png"},	{"shower rain and drizzle"}},
			{{"314"},	{"09d.png"},	{"heavy shower rain and drizzle"}},
			{{"321"},	{"09d.png"},	{"shower drizzle"}},
			{{""},	{""},	{""}}
		};
	
}
